package main

import (
	"fmt"
)

func main() {
	test2()
	fmt.Println(noun(10))
}

func noun(n int) int {
	var sum int = n
	for i := 1; i < n+1; i++ {
		sum *= i
	}
	return sum
}

func test2() {
	flag := true
	var n int
	var m int
	fmt.Scanf("%d %d", &n, &m)
	var d int
	for i := n; i < m; i++ {
		flag = true
		for x := 2; x < i; x++ {
			if i%x == 0 {
				flag = false
				break
			}
		}
		if flag == true {
			fmt.Println(i)
			d++
		}
	}
	fmt.Println(d)
}

func test() {

	var num int
	for i := 100; i < 10000; i++ {
		a := i % 10
		b := i / 10 % 10
		c := i / 100 % 10
		if i == (a*a*a + b*b*b + c*c*c) {
			fmt.Println(i)
			num = num + 1
		}
	}
	fmt.Println(num)
	fmt.Printf("水仙花数有:%d", num)
}
